﻿#pragma once

//实现vtk渲染窗口的功能
#include "DlgBase.h"


//单例模式  
class CreateCylinderDlg: public DlgBase
{
public:
    CreateCylinderDlg(QWidget* parent = nullptr);
    ~CreateCylinderDlg();

    bool create();
    void initUI() override;
    void manageConnections() override;

private:
    double m_centerPoint[3] = { 0, 0, 0 };
    double m_direction[3] = { 0, 0, 1 };
    double m_height = 2;
    double m_radius = 1;

    //start point
    MyCoordinateEdit* m_centerPointCoord = nullptr;
    MyCoordinateEdit* m_directionEdit = nullptr;
    MyDoubleEdit* m_heightEdit = nullptr;
    MyDoubleEdit* m_radiusEdit = nullptr;

    //ok button
    QPushButton* m_okBtn = nullptr;

    //cancel button
    QPushButton* m_cancelBtn = nullptr;
};


